using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataModels.Models
{
    [Table("ReportBusinessRules")]
    public partial class ReportBusinessRule
    {
        [Key]
        public int BRNo { get; set; }
        public Nullable<int> RepID { get; set; }
        public int MeasurePosNo { get; set; }

        [StringLength(1000)]
        [Required]
        public string RuleDescription { get; set; }
        public int Action { get; set; }

        [StringLength(50)]
        public string ComparedToOrderPos { get; set; }
        public Nullable<int> ComparisonType { get; set; }
        public Nullable<bool> Multicomparison { get; set; }

        [ForeignKey("RepID")]
        public virtual Report Report { get; set; }
    }
}
